import request from "@/utils/request";
import type { categoryValueListModel } from "./model/categoryModel";
/* 
GET /admin/product/getCategory1
GET /admin/product/getCategory2/{category1Id}
GET /admin/product/getCategory3/{category2Id}
*/

export const getCategory1Api = () => {
  return request.get<any, categoryValueListModel>(
    "/admin/product/getCategory1"
  );
};
export const getCategory2Api = (category1Id: number) => {
  return request.get<any, categoryValueListModel>(
    `/admin/product/getCategory2/${category1Id}`
  );
};
export const getCategory3Api = (category2Id: number) => {
  return request.get<any, categoryValueListModel>(
    `/admin/product/getCategory3/${category2Id}`
  );
};
